/**
 * Created by Amaris on 2016/12/6.
 */

var express = require('express');
var router = express.Router();
var evaluateCtrl = require('../../controller/controller.evaluate.js');

var evaluateService = require('../../services/service.evaluate.js');

router.get('/getCountById', function (req, res, next) {
    evaluateCtrl.getCountById(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});


router.get('/getCountList', function (req, res, next) {
    evaluateCtrl.getCountList(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

router.get('/getEvaluateServiceList', function (req, res, next) {
    evaluateService.getEvaluateServiceList(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});


router.get('/getEvaluateInfo', function (req, res, next) {
    evaluateService.getEvaluateInfo(req, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});


router.get('/getEvaluateInfoList', function (req, res, next) {
    evaluateService.getEvaluateInfoList(req, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

module.exports = router;
